import request from '@/utils/request'

// 查询支付 抽佣入网渠道列表
export function listDinPay(query) {
  return request({
    url: '/ecs/dinPay/list',
    method: 'get',
    params: query
  })
}

// 查询支付 抽佣入网渠道详细
export function getDinPay(id) {
  return request({
    url: '/ecs/dinPay/' + id,
    method: 'get'
  })
}

// 新增支付 抽佣入网渠道
export function addDinPay(data) {
  return request({
    url: '/ecs/dinPay',
    method: 'post',
    data: data
  })
}

// 修改支付 抽佣入网渠道
export function updateDinPay(data) {
  return request({
    url: '/ecs/dinPay',
    method: 'put',
    data: data
  })
}


export function queryDetail(id) {
  return request({
    url: '/ecs/dinPay/queryDetail/'+id,
    method: 'get',
  })
}





// 删除支付 抽佣入网渠道
export function delDinPay(id) {
  return request({
    url: '/ecs/dinPay/' + id,
    method: 'delete'
  })
}

export function incoming(query) {
  return request({
    url: '/ecs/dinPay/incoming',
    method: 'post',
    data: query
  })
}

export function smsCodeApi(query) {
  return request({
    url: '/ecs/dinPay/smsCode',
    method: 'get',
    params: query
  })
}

export function accountBindVerify(query) {
  return request({
    url: '/ecs/dinPay/accountBindVerify',
    method: 'post',
    data: query
  })
}



export function registered(query) {
  return request({
    url: '/ecs/dinPay/registered',
    method: 'post',
    data: query
  })
}


export function registerQuery(query) {
  return request({
    url: '/ecs/dinPay/registerQuery',
    method: 'get',
    params: query
  })
}


export function imageUrlUploadQuery(query) {
  return request({
    url: '/ecs/dinPay/imageUrlUploadQuery',
    method: 'get',
    params: query
  })
}
export function imageUpload(query) {
  return request({
    url: '/ecs/dinPay/imageUpload',
    method: 'post',
    data: query
  })
}
export function editFeeRate(query) {
  return request({
    url: '/ecs/dinPay/editFeeRate',
    method: 'put',
    data: query
  })
}

export function transferSettingQuery(query) {
  return request({
    url: '/ecs/dinPay/transferSettingQuery',
    method: 'get',
    params: query
  })
}

export function transferDepositQuery(query) {
  return request({
    url: '/ecs/dinPay/transferDepositQuery',
    method: 'get',
    params: query
  })
}



export function transferSetting(query) {
  return request({
    url: '/ecs/dinPay/transferSetting',
    method: 'get',
    params: query
  })
}


export function transferDepositOpen(query) {
  return request({
    url: '/ecs/dinPay/transferDepositOpen',
    method: 'get',
    params: query
  })
}



